class SingleTon<T> where T:new()
{
    private static T ins;
    public static T GetIns()
    {
        if (ins == null)
        {
            ins = new T();
        }
        return ins;
    }
}